package cn.blt.core.article.entity;

import cn.blt.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 博客文章表
 * @author run
 * @since 2022-08-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BlBlog对象", description="博客文章表")
@TableName("bl_blog")
public class BlogEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "绑定者ID")
    private Long userId;

    @ApiModelProperty(value = "所属类型")
    private Long typeId;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "文章注释")
    private String remarks;

    @ApiModelProperty(value = "文章内容")
    private String content;

    @ApiModelProperty(value = "是否开放 0未开放/1开放")
    private Integer hideStatus;

    @ApiModelProperty(value = "是否是草稿 0草稿 1非草稿")
    private Integer draftStatus;


}
